package com.healthshare.busi.login;

import com.healthshare.parse.RetCodeParse;
import com.palmedia.framework.business.BaseBusi;
import com.palmedia.framework.myinterface.UiCallBack;
import com.palmedia.framework.parse.BaseParse;
import com.palmedia.framework.util.MD5Util;

public class LoginBusi extends BaseBusi
{

	//login/login? Clientios=1
	public  String  tail = "login/login.php";
	
	//0表示iphone，1表示android，2表示web
	public String clientios = "";
	public String email="";
	public String password;
	
	public LoginBusi(UiCallBack bCallBack)
	{
		super(bCallBack);
	}
	
	public void iExecute()
    {
		reqParam = tail;
		String tmpdata = "password="+MD5Util.getMD5String(password)+"&email="+email+"&clientios="+clientios;
		buffer = tmpdata.getBytes();
    	super.iExecute();
    }
	
	@Override
	protected BaseParse parseResult(byte[] data)
	{
		// TODO Auto-generated method stub
		RetCodeParse	ls = new RetCodeParse();
		ls.Parse(data);
		return ls;
	}
	
	
	
}
